package com.hadwinling.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.hadwinling.mapper.BurnMapper;
import com.hadwinling.entity.Burn;
import com.hadwinling.service.BurnService;

import java.util.List;

/**
 * @Classname BurnServiceImpl
 * @Description TODO
 * @Date 2021/7/3 15:49
 * @Created by ${hadwinling}
 */
@Service
public class BurnServiceImpl implements BurnService{

    @Resource
    private BurnMapper burnMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return burnMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(Burn record) {
        return burnMapper.insert(record);
    }

    @Override
    public int insertSelective(Burn record) {
        return burnMapper.insertSelective(record);
    }

    @Override
    public Burn selectByPrimaryKey(Integer id) {
        return burnMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<Burn> selectAllByBurnidBetweenBurnid(Integer minBurnid, Integer maxBurnid) {
        return burnMapper.selectAllByBurnidBetweenBurnid(minBurnid, maxBurnid);
    }

    @Override
    public int updateByPrimaryKeySelective(Burn record) {
        return burnMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Burn record) {
        return burnMapper.updateByPrimaryKey(record);
    }

}
